<?php 
if (!empty($this->placeMarks)) {
?>
<h1>My PlaceMarks:</h1>
<?php
$index = 0;
foreach($this->placeMarks as $placeMark) {
    ++$index;
?>
    <div>
    <div id="showEditPlaceMark<?php echo $placeMark->latitude."-".$placeMark->longitude?>">
    <input type="hidden" id="lat" value="<?php echo $placeMark->latitude?>">
    <input type="hidden" id="lng" value="<?php echo $placeMark->longitude?>">
    <a href="javascript:void(0)" id="show"><?php echo $index.". ".$placeMark->getPresentName();?></a>
    </div><br/>
    <div id="editPlaceMark<?php echo $placeMark->latitude."-".$placeMark->longitude?>">
        <input type="hidden" id="lat" value="<?php echo $placeMark->latitude?>">
        <input type="hidden" id="lng" value="<?php echo $placeMark->longitude?>">
        Name:<input type="input" id="name" value="<?php echo $placeMark->name?>"><br>
        Description:<textarea row="3" id="description"><?php echo $placeMark->description?></textarea><br>
        <a href="javascript:void(0)" id="savePlaceMark">Save</a>&nbsp;
        <a href="javascript:void(0)" onclick="removePlaceMark(<?php echo $placeMark->latitude?>, <?php echo $placeMark->longitude?>)">Remove</a>
    </div>
    </div>
<?php
}
}
?>

<a href="javascript:void(0)" onclick="reset()">Reset</a>